<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
      div{
         text-align:center;
         border:1px solid red;
         width:100px;
         height:100px;
         background:blue
      }
    </style>
</head>
<body>
      <div style="text-align:center;border:1px solid red;width:100px; height:100px;background:blue">标签1</div>
      <div>标签2</div>
</body>
</html>